<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博客列表</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<span><a href="/wlog/index">返回博客</a></span>
<div><form action=""><input type="text" name="search" value="{if!empty($_GET['search'])}{$_GET['search']}{/if}" /><button type="submit">搜索</button></form></div>
<table border="1">
    <tr>
        <td>博客ID</td>
        <td>博客名称</td>
        <td>博客栏目</td>
        <td>博客状态</td>
        <td>创建时间</td>
        <td>修改时间</td>
        <td>操作</td>
    </tr>
    {foreach $select as $key=>$vo }
    <tr>
        <td>{$vo.id}</td>
        <td>{$vo.title}</td>
        <td>{$vo.cate_name}</td>
        <td>{if $vo.status==0}未发布{else /}已发布{/if}</td>
        <td>{$vo.datetime}</td>
        <td>{$vo.updatetime}</td>
        <td><a href="reduction/id/{$vo.id}">还原</a>&nbsp||<a href="rdel/id/{$vo.id}">删除</a></td>
    </tr>
    {/foreach}
</table>
{$select|raw}
</body>
</html>